<?
require("includes/constants.php");
require("includes/funciones.inc.php");

session_start();
if(!isset($_SESSION['nombreUsuario']))
	exit();

$DB = NewADOConnection('mysqlt');
$DB->Connect();
$DB->Execute("SET NAMES utf8;");
//$DB->debug=true;

$strSQL = "SELECT foto FROM articulos WHERE idArticulo = ".$_REQUEST['idArticulo'];
$rsFoto = $DB->Execute($strSQL);
?>

<div class="form_settings" style="text-align: center">
<?php 
if($rsFoto->EOF || $rsFoto->fields("foto") == ""){
	echo '<img id="imgArticulo" name="imgArticulo" src="images/no_image.jpg" >';
}
else {
	echo '<img id="imgArticulo" name="imgArticulo" src="'.$rsFoto->fields("foto").'">';
}
?>
</div>